package main

import (
	"github.com/1141520944/go-library/hjz/common"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	l := common.LoggerDefault("test.log", "./tqLogger/test")
	e := gin.Default()
	e.GET("/ws/proxy", func(c *gin.Context) {
		common.Resp(c).Data("test:ok").Success()
	})
	r := common.InitRouter(e, l)
	common.Run(l, &http.Server{Handler: r, Addr: "0.0.0.0:8000"}, nil)
}
